package org.asiainfo.system.domain.convert;

import io.github.linpeilie.BaseMapper;
import org.asiainfo.system.api.domain.bo.RemoteOperationLogBo;
import org.asiainfo.system.domain.bo.SysOperationLogBo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingConstants;
import org.mapstruct.ReportingPolicy;

/**
 * 操作日志转换
 *
 * @author dotor-ww
 */
@Mapper(componentModel = MappingConstants.ComponentModel.SPRING, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysOperationLogBoConvert extends BaseMapper<RemoteOperationLogBo, SysOperationLogBo> {

    /**
     * 对象日志转换
     *
     * @param remoteOperationLogBo 待转换对象
     * @return 转换后对象
     */
    @Mapping(target = "businessTypes", ignore = true)
    SysOperationLogBo convert(RemoteOperationLogBo remoteOperationLogBo);
}
